package com.ttg.web.manage;



import com.ttg.common.utils.StringUtil;
import com.ttg.model.pojo.Admin;
import com.ttg.model.pojo.Organ;
import com.ttg.model.vo.UserResVo;
import sun.management.resources.agent;

import java.util.Objects;

/**
 * @author ZQ
 * @version 1.0
 * @Description
 * @date 2021/3/10 9:48
 */
public class AdminManager {
    public static UserResVo assemblyUserResVo(Admin admin){
        UserResVo vo = new UserResVo();
        vo.setAdmId(admin.getAdmId().toString());
        vo.setAdmUserName(admin.getAdmUserName());
        vo.setAdmTrueName(admin.getAdmTrueName());
        vo.setOrgNo(StringUtil.toStringOrNull(admin.getAdmOrgNo()));
        vo.setAgentNo(StringUtil.toStringOrNull(admin.getAdmAgentNo()));
        return vo;
    }
}
